# encoding:utf8
import backtrader as bt
from .algos import *


class StratgeyBuyHold(bt.Strategy):
    def __init__(self):
        self.algos = [
            RunOnce(),
            SelectAll(),
            WeightEqually()
        ]

    def next(self):
        context = {
            'strategy': self
        }
        run_algos(context, self.algos)
